package cn.com.api.entity;

import cn.com.api.entity.base.U_matchBase;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

// U_match Entity

/// <summary>
/// Datetime: 2017/3/8 20:02:31		
/// the entity of table U_match.
/// </summary>

/**
 * @author Administrator
 *
 */
public class ApiU_match extends U_matchBase implements Serializable {

	private String match_introduce = "";

	// 赛事类别
	private String match_cate = "";

	// 赛事的奖项信息
	private List<ApiU_match_prize> apiU_match_prizes = new ArrayList<ApiU_match_prize>();

	// 赛事的参赛作品信息
	private List<ApiU_match_works> apiU_match_works = new ArrayList<ApiU_match_works>();

	// 赛事已投票的人数
	private Integer totalvotecount = 0;

	// 针对某个用户，查看他是否已投过票 0-未投票；1-已投票
	private Integer is_vote = 0;

	// 针对某个用户，查看他是否报名了 0-未报名；1-已报名
	private Integer is_sign = 0;

	// 针对投票截止时间距离当前时间的倒数天数，如果当前时间超过截止时间值为0；
	private Integer vdaycountdown = 0;

	// 针对报名截止时间距离当前时间的倒数天数，如果当前时间超过截止时间值为0；
	private Integer pdaycountdown = 0;

	public String getMatch_introduce() {
		return match_introduce;
	}

	public void setMatch_introduce(String match_introduce) {
		this.match_introduce = match_introduce;
	}

	public String getMatch_cate() {
		return match_cate;
	}

	public void setMatch_cate(String match_cate) {
		this.match_cate = match_cate;
	}

	public List<ApiU_match_prize> getApiU_match_prizes() {
		return apiU_match_prizes;
	}

	public void setApiU_match_prizes(List<ApiU_match_prize> apiU_match_prizes) {
		this.apiU_match_prizes = apiU_match_prizes;
	}

	public List<ApiU_match_works> getApiU_match_works() {
		return apiU_match_works;
	}

	public void setApiU_match_works(List<ApiU_match_works> apiU_match_works) {
		this.apiU_match_works = apiU_match_works;
	}

	public Integer getTotalvotecount() {
		return totalvotecount;
	}

	public void setTotalvotecount(Integer totalvotecount) {
		this.totalvotecount = totalvotecount;
	}

	public Integer getIs_vote() {
		return is_vote;
	}

	public void setIs_vote(Integer is_vote) {
		this.is_vote = is_vote;
	}

	public Integer getVdaycountdown() {
		return vdaycountdown;
	}

	public void setVdaycountdown(Integer vdaycountdown) {
		if (vdaycountdown < 0)
			vdaycountdown = 0;
		this.vdaycountdown = vdaycountdown;
	}

	public Integer getPdaycountdown() {
		return pdaycountdown;
	}

	public void setPdaycountdown(Integer pdaycountdown) {
		if (pdaycountdown < 0)
			pdaycountdown = 0;
		this.pdaycountdown = pdaycountdown;
	}

	public Integer getIs_sign() {
		return is_sign;
	}

	public void setIs_sign(Integer is_sign) {
		this.is_sign = is_sign;
	}
}
